package com.xiannimei.model.command;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.xiannimei.model.Member;

/**
 * RegisterCmd 注册信息
 * 
 * 2013-7-8 下午1:45:01
 * 
 * @author xinyuan.guo
 * 
 */
public class RegisterCmd extends Member {

	@NotNull(message = "{valid.register.captcha}")
	@Pattern(regexp = "^[a-zA-Z\\d]{4}$", message = "{valid.register.captcha}")
	private String captcha;

	@Pattern(regexp = "^[a-zA-Z\\d]{6,12}$", message = "{valid.register.rePwd}")
	private String rePwd;
	
	@NotNull(message = "{valid.register.email}")
	@Pattern(regexp = "^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$", message = "{valid.register.email}")
  private String email;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public String getRePwd() {
		return rePwd;
	}

	public void setRePwd(String rePwd) {
		this.rePwd = rePwd;
	}

}